from flask import Blueprint, render_template, send_from_directory
import os

main_view = Blueprint('main_view', __name__)

@main_view.route('/')
def index():
    return render_template('index.html')

@main_view.route('/assets/<path:filename>')
def serve_static(filename):
    root_dir = os.path.dirname(os.getcwd())
    return send_from_directory(os.path.join(root_dir, 'app', 'dist', 'assets'), filename)
